const router = require('koa-router')()
const { models } = require('../../model')

router.get('/panel/:id', async function (ctx) {
  const id = ctx.params.id
  const panel = await models.SharePanel.findById(id)
  ctx.wrapper.succ(panel)
})

module.exports = router
